/**
 * Created by Administrator on 2017/7/19.
 */
var sub=require('./sub.js');
var $ = require('jquery');
import 'imports-loader?jQuery=jquery!./plugin'; //在引入jquery插件plugin.js之前先引入jquery，否则会报错
var moment = require('moment'); //引入第三方库，处理时间
require('./main.css');
require('./mian.scss');


var app=document.createElement('div');
let myPromise=Promise.resolve(42);
myPromise.then((number) =>{
  $('body').append('<p>look at me! now is ' + moment().format() + '</p>');
  $('p').greenify(); //调用插件
})
app.innerHTML='<h1>Hello World</h1>';
app.appendChild(sub());
document.body.appendChild(app);
